<!DOCTYPE html>
<html lang="en" style="height:100%">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>系统消息</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../css/yzl.css" />
    <!-- <link rel="stylesheet" href="../../css/BarlowCondensed-Bold.woff.ttf" /> -->
    <!-- <link rel="stylesheet" href="../../css/sqc.css"> -->
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        input{

            outline:none;
        }

    </style>
</head>

<body style="background: #fff;">
<div id="blank" class="header" v-cloak style="border-bottom: 1px solid #f7f4f2">
    <div v-back.tapmode class="back"></div>
    <div class="title">系统消息</div>
</div>
<div id="app"  v-cloak style="padding-top:60px;">
    <div class="notice-message">
        <div class="notice-message-title">{{message_list.title}}</div>
        <div class="notice-message-time">{{message_list.create_time| time}}</div>
        <div class="notice-message-con">
            {{message_list.content}}
        </div>
        <div class="notice-message-img">
            <img style="width: 100%;" :src="message_list.image_url"/>
        </div>
    </div>
</div>
</body>
<script src="../../script/api.js"></script>
<script src="../../script/vue.js"></script>
<script src="../../script/app.js"></script>
<script src="../../script/common.js"></script>
<script src="../../script/url.js"></script>
<script src="../../script/components.js"></script>
<script type="text/javascript" src="../../script/jquery.js"></script>

<script>
    var vm,
        wx,
        message_list,
    apiready = function () {
        setBSImg();
        new Vue({
            el: '#blank'
        })
        wx = api.require('wx');
        var data = {
            member_id:getPrefs('member_id'),
            id:api.pageParam.id,
        };
        var callback = function (ret) {
            message_list = ret.content;
            console.log(JSON.stringify(message_list))
            initApp();
        };
        pinet.post(APIURL+'/app/Notices/systemDetail', data, callback);
        api.parseTapmode();
        addListeners();
    };

    function initApp() {
        // var isBigImg = Vue.BSImg == 'big';
        vm = new Vue({
            el: '#app',
            data: {
                message_list:message_list,
            },
            computed: {

            },
            methods: {
            },
            watch: {

            },
        })
    }

    function addListeners() {

        api.addEventListener({
            name: 'viewappear'
        }, function () {
        });

        api.addEventListener({
            name: 'viewdisappear'
        }, function () {
        });

        api.addEventListener({
            name: 'keyback'
        }, function () {
            console.log('ddddd');
            api.closeWin();
        });
        api.addEventListener({
            name: 'reload'
        }, function () {
            window.location.reload();
        });
    }


</script>

</html>
